package com.px.ioc.service;

import com.px.ioc.dao.Animal;
import com.px.ioc.service.HumanService;

public class HumanSericeImpl implements HumanService {
    private Animal animal;
    public void putFood() {
        animal.eat();
    }

    public Animal getAnimal() {
        return animal;
    }

    public void setAnimal(Animal animal) {
        this.animal = animal;
    }
}
